package cn.ll.util;

import java.io.UnsupportedEncodingException;

public class StringUtil {
	
	/**
	 * 对str字符串进行sha1加密
	 * @param str
	 * @return
	 */
	public static String sha1(String str){
		SHA1 sha1 = new SHA1();
		return sha1.getDigestOfString(str.getBytes());
	}
}
